using System;
using System.Collections.Generic;
using System.Text;

namespace Workflows.Components.Reports
{
    public struct ReportCategory : IComparable
    {
        public string Name;
        public int Ordinal;

        #region IComparable Members

        public int CompareTo(object obj)
        {
            if (obj.GetType() == typeof(ReportCategory))
            {
                ReportCategory otherCategory = (ReportCategory)obj;
                return this.Ordinal.CompareTo(otherCategory.Ordinal);
            }
            else
                return 0;
        }

        #endregion
    }
}
